package com.shishuo.cms.filter;

import java.io.Writer;

import com.shishuo.cms.exception.ViewException;

import freemarker.core.Environment;
import freemarker.template.TemplateException;
import freemarker.template.TemplateExceptionHandler;

public class FreemarkerExceptionHandler implements TemplateExceptionHandler{

	@Override
	public void handleTemplateException(TemplateException te, Environment env,
			Writer out) throws TemplateException {
			throw new ViewException("freemarker error",te);
	}
}
